#!/usr/bin/python
# -*- coding: UTF-8 -*-
def use_logging(func):
    # logging.warn("%s is running" % func.__name__)
    print("hahah")
    func()

def foo():
    print('i am foo')

use_logging(foo)